<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
	$("#submit").click(function(){
		if(confirm("축의금을 보내시겠습니까?")){
			var form = $("#updateForm").serialize();
			
			$.ajax({
				type:"POST",
				url:"${initParam.root}/transfer.do",
				data: form,
				dataType:"json",
				success:function(data){
					alert(data.path);
				}
			});
		}
		return;
	});
	
}); 
</script>
</head>
<body background="${initParam.root}/img/money_bg.jpg">
<form id="updateForm" name="updateForm">
<input type="hidden" name="command" value="transfer">
<table>
	<tr>
		<td><font size=2><b>계좌번호</b></font></td>
		<td><input type="text"  name="sendAccount" size=20></td>
	</tr>
	<tr>
		<td><font size=2><b>계좌비밀번호</b></font></td>
		<td><input type="text" name="accountPassword" size=20></td>
	</tr>
	<tr>
		<td><font size=2><b>보내는돈</b></font></td>
		<td><input type="text" name="sendMoney" size=20></td>
	</tr>
	<tr>
		<td><font size=2><b>받는분</b></font></td>
		<td><input type="text" name="receiveAccount" size=20></td>
	</tr>
</table>

<br>
<span style="margin-left: 160px"><input type="button" value="축의금보내기" id="submit"></span>
</form>
</body>

</html>